package com.norbitltd.guavaleaves.java.lang;

import com.google.common.base.Function;

public class CharacterFunctions {

	public static Function<Character, Character> reverseBytes() {
		return new Function<Character, Character>() {
			public Character apply(Character input) {
				return Character.reverseBytes(input);
			}
		};
	}
	
	public static Function<Character, Character> toLowerCase() {
		return new Function<Character, Character>() {
			public Character apply(Character input) {
				return Character.toLowerCase(input);
			}
		};
	}
	
	public static Function<Character, Character> toTitleCase() {
		return new Function<Character, Character>() {
			public Character apply(Character input) {
				return Character.toTitleCase(input);
			}
		};
	}
	
	public static Function<Character, Character> toUpperCase() {
		return new Function<Character, Character>() {
			public Character apply(Character input) {
				return Character.toUpperCase(input);
			}
		};
	}
}
